<template>
  <div>
    <Table border :columns="columnshead" :data="datat"></Table>
  </div>
</template>

<script>
export default {
  data() {
    return {
      columnshead: [
        {
          type: "index",
          title: "序号",
          width: 60
        },
        {
          title: "课程编码",
          key: "csId"
        },
        {
          title: "课程名称",
          key: "csName"
        },
        {
          title: "证书代码",
          key: "ctId"
        },
        {
          title: "证书名称",
          key: "ctName"
        },
        {
          title: "折换分数",
          key: "ctReplscore"
        },
        {
          title: "折换分数",
          key: "ctReplscore"
        },
        {
          title: "计划版本",
          key: "mvId"
        }
      ],
      datat: []
    };
  },
  created() {
    this.$axios
      .get(this.$host + "/Majorcourse/allcertificatereplacerelation")
      .then(res => {
        this.datat = res.data.data;
      });
  }
};
</script>
